package cn.tedu.mall.order.mapper;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author BJ
 * @date 2022/11/4 20:18
 */
@Repository
public interface OmsOrderMapper {

    // 新增订单
    int addOrder(OmsOrder omsOrder);

    // 根据时间查询订单
    List<OrderListVO> selectOrderBetweenTimes(OrderListTimeDTO orderListTimeDTO);

    // 更新订单的状态
    int updateOrderStateById(OmsOrder omsOrder);
}
